package cn.itcast.hotel.result;

import cn.itcast.hotel.pojo.HotelDoc;
import lombok.Data;

import java.util.List;
/**
 *
 *分页查询，需要返回分页结果PageResult
 *- `total`：总条数
 * - `List<HotelDoc>`：当前页的数据
 * @author wwk*/
@Data
public class PageResult {
    private Long total;
    private List<HotelDoc> hotels;

    public PageResult() {
    }

    public PageResult(Long total, List<HotelDoc> hotels) {
        this.total = total;
        this.hotels = hotels;
    }
}
